package com.factorit.security;

import org.securityfilter.realm.SimplePrincipal;

import com.factorit.beans.User;
/**
 * Usuario principal para el Security Filter.
 * @author gderosa
 *
 */
@SuppressWarnings("serial")
public class SessionPrincipal extends SimplePrincipal{
	private String username;
	private String password;
	private User user;
	
	
	public SessionPrincipal(String name,String password, User user) {
		super(name);
		this.username = name;
		this.password = password;
		this.user = user;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public User getUser() {
		return user;
	}
}
